<?php 

/**
* 人类
*/
class Ren extends Dongwu
{
	public static $name;
	public $sex;

	public function __construct($name=null , $eat=null){
		$this::$name = $name ? $name : $this::$name ;
		$this->sex = $eat;
	}

	public  function chi($data=null)
	{
		echo $this::$name."可以吃";
		echo $data;
	}

	public function shou()
	{
		$this->chi();
		echo "人可以说话";
	}


	public function renjiao()
	{
		$this->jiao();
	}


	// public function __destruct()
	// {
	// 	echo '我要死了';
	// }

	public static function sleep()
	{
		
		echo '可以睡';
	}
	
}










 ?>